import { createRouter,createWebHashHistory } from "vue-router";
import Home from '../views/Home/index.vue'
const routes = [
  {
    path:'/',
    component:Home,
    redirect: '/page1',
    children:[
      {
        path:'/page1',
        component:()=>import('../views/Nav/page1/index.vue')
      },
      {
        path:'/page2',
        component:()=>import('../views/Nav/page2/index.vue')
      },
      {
        path:'/page3',
        component:()=>import('../views/Nav/page3/index.vue')
      },
      {
        path:'/page4',
        component:()=>import('../views/Nav/page4/index.vue')
      }
    ]
  }
]
const router = createRouter({
  history:createWebHashHistory(),
  routes
})
export default router